Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature Request: Add regex filtering to topic like we do in groups. #72

Merged
merged 2 commits into from
Jun 18, 2018

Conversation

michaelritsema
Copy link

I'm not familiar with your codebase. I'm using this branch because I needed topic filtering (I have thousands).

Copy link
Owner

@fgeller fgeller left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@michaelritsema sorry for the delay and thank you very much for the PR!

generally looks like a nice improvement to me, would prefer more explicit names though. let me know what you think and if you have time for it or if you'd prefer me to merge and apply the changes myself.

@@ -420,6 +431,7 @@ func (cmd *groupCmd) parseFlags(as []string) groupArgs {
flags.StringVar(&args.brokers, "brokers", "", "Comma separated list of brokers. Port defaults to 9092 when omitted (defaults to localhost:9092).")
flags.StringVar(&args.group, "group", "", "Consumer group name.")
flags.StringVar(&args.filter, "filter", "", "Regex to filter groups.")
flags.StringVar(&args.tfilter, "tfilter", "", "Regex to filter topics.")
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@michaelritsema i'd prefer a more explicit flag & var name. e.g. filter-topic and filter-group - what do you think?

@fgeller fgeller merged commit cb1c473 into fgeller:master Jun 18, 2018
@fgeller
Copy link
Owner

fgeller commented Jun 18, 2018

will fix this on master - cheers @michaelritsema

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants